rice grain
Advancements in Crop Analysis through Deep Learning and Explainable AI
Rice is a staple food of global importance in terms of trade, nutrition, and economic growth. Among Asian nations such as China, India, Pakistan, Thailand, Vietnam and Indonesia are leading producers of both long and short grain varieties, including basmati, jasmine, arborio, ipsala, and kainat saila. To ensure consumer satisfaction and strengthen national reputations, monitoring rice crops and grain quality is essential. Manual inspection, however, is labour intensive, time consuming and error prone, highlighting the need for automated solutions for quality control and yield improvement. This study proposes an automated approach to classify five rice grain varieties using Convolutional Neural Networks (CNN). A publicly available dataset of 75000 images was used for training and testing. Model evaluation employed accuracy, recall, precision, F1-score, ROC curves, and confusion matrices. Results demonstrated high classification accuracy with minimal misclassifications, confirming the model effectiveness in distinguishing rice varieties. In addition, an accurate diagnostic method for rice leaf diseases such as Brown Spot, Blast, Bacterial Blight, and Tungro was developed. The framework combined explainable artificial intelligence (XAI) with deep learning models including CNN, VGG16, ResNet50, and MobileNetV2. Explainability techniques such as SHAP (SHapley Additive exPlanations) and LIME (Local Interpretable Model-agnostic Explanations) revealed how specific grain and leaf features influenced predictions, enhancing model transparency and reliability. The findings demonstrate the strong potential of deep learning in agricultural applications, paving the way for robust, interpretable systems that can support automated crop quality inspection and disease diagnosis, ultimately benefiting farmers, consumers, and the agricultural economy.
An Overall Real-Time Mechanism for Classification and Quality Evaluation of Rice
Xia, Wanke, Peng, Ruoxin, Chu, Haoqi, Zhu, Xinlei, Yang, Zhiyu, Wang, Yaojun
Rice is one of the most widely cultivated crops globally and has been developed into numerous varieties. The quality of rice during cultivation is primarily determined by its cultivar and characteristics. Traditionally, rice classification and quality assessment rely on manual visual inspection, a process that is both time-consuming and prone to errors. However, with advancements in machine vision technology, automating rice classification and quality evaluation based on its cultivar and characteristics has become increasingly feasible, enhancing both accuracy and efficiency. This study proposes a real-time evaluation mechanism for comprehensive rice grain assessment, integrating a one-stage object detection approach, a deep convolutional neural network, and traditional machine learning techniques. The proposed framework enables rice variety identification, grain completeness grading, and grain chalkiness evaluation. The rice grain dataset used in this study comprises approximately 20,000 images from six widely cultivated rice varieties in China. Experimental results demonstrate that the proposed mechanism achieves a mean average precision (mAP) of 99.14% in the object detection task and an accuracy of 97.89% in the classification task. Furthermore, the framework attains an average accuracy of 97.56% in grain completeness grading within the same rice variety, contributing to an effective quality evaluation system.
Cell Phone Image-Based Persian Rice Detection and Classification Using Deep Learning Techniques
kelishami, Mahmood Saeedi, Kelishami, Amin Saeidi, Kelishami, Sajjad Saeedi
Rice stands as a foundational agricultural product and staple food, instrumental in feeding more than half of the global population. It is a significant source of sustenance for approximately 3.5 billion individuals worldwide and represents a crucial element of food security, with an annual production surpassing 500 million tons. Beyond its role as a dietary staple, rice cultivation is a vital economic activity, offering substantial income for countless farmers across various regions. The emphasis on sophisticated and accurate methodologies for rice quality and classification has become increasingly prominent. This urgency is driven by the potential to enhance market acceptability, minimize rejection rates, and elevate the economic gains for producers through reliable quality assurance practices [1]. In the realm of agricultural quality assessment, traditional methods often depend on manual inspection based on visual appearance and smell, which, despite their widespread use, suffer from limitations in speed, accuracy, and reliability, particularly for those without extensive experience. Recent advancements in technology have paved the way for the application of data mining and machine learning techniques, marking a significant leap in enhancing the efficiency and precision of rice classification processes. These innovative approaches utilize detailed feature extraction from images, analyzing color, shape, and textural characteristics to differentiate rice varieties and ascertain their quality with unprecedented accuracy [2, 3, 4, 5, 6]. Sumaryanti et al. present a system designed for the identification of rice varieties using image processing techniques and a LVQ neural network algorithm.
Vision-Based Defect Classification and Weight Estimation of Rice Kernels
Wang, Xiang, Wang, Kai, Li, Xiaohong, Lian, Shiguo
Rice is one of the main staple food in many areas of the world. The quality estimation of rice kernels are crucial in terms of both food safety and socio-economic impact. This was usually carried out by quality inspectors in the past, which may result in both objective and subjective inaccuracies. In this paper, we present an automatic visual quality estimation system of rice kernels, to classify the sampled rice kernels according to their types of flaws, and evaluate their quality via the weight ratios of the perspective kernel types. To compensate for the imbalance of different kernel numbers and classify kernels with multiple flaws accurately, we propose a multi-stage workflow which is able to locate the kernels in the captured image and classify their properties. We define a novel metric to measure the relative weight of each kernel in the image from its area, such that the relative weight of each type of kernels with regard to the all samples can be computed and used as the basis for rice quality estimation. Various experiments are carried out to show that our system is able to output precise results in a contactless way and replace tedious and error-prone manual works.